package com.miraclengine.karma;

import com.miraclengine.framework.Sound;
import com.miraclengine.framework.gl.Texture;
import com.miraclengine.framework.gl.TextureRegion;
import com.miraclengine.framework.impl.GLGame;

public class Assets {
	
	public static Texture image_data;
	public static TextureRegion kLogoRegion;
	public static TextureRegion kBackgroundRegion;
	public static TextureRegion kBtn_reset_normalRegion;
	public static TextureRegion kBtn_reset_selectRegion;
	public static TextureRegion kBtn_start_normalRegion;
	public static TextureRegion kBtn_start_selectRegion;
	public static TextureRegion kCopyrightRegion;
	public static TextureRegion kTitleRegion;
	
    
    
    public static void load(GLGame game) {
    	
    	image_data = new Texture(game, "image_data.png");
    	kLogoRegion = new TextureRegion(image_data, 2, 866, 1184, 720);
    	kBackgroundRegion = new TextureRegion(image_data, 2, 2, 1400, 720);
    	kBtn_reset_normalRegion = new TextureRegion(image_data, 1404, 2, 394, 140);
    	kBtn_reset_selectRegion = new TextureRegion(image_data, 2, 724, 394, 140);
    	kBtn_start_normalRegion = new TextureRegion(image_data, 398, 724, 394, 140);
    	kBtn_start_selectRegion = new TextureRegion(image_data, 794, 724, 394, 140);
    	kCopyrightRegion = new TextureRegion(image_data, 1190, 724, 304, 25);
    	kTitleRegion = new TextureRegion(image_data, 1188, 866, 557, 356); 
    }       
    
    public static void reload() {
    	image_data.reload();
        
        if(Settings.soundEnabled)  {
            //music.play();
        }
    }
    
    public static void playSound(Sound sound) {
        if(Settings.soundEnabled) {
            //sound.play(1);
        }
    }
}
